function jellyObj() {
	this.x;
	this.y;
}

jellyObj.prototype.init = function() {
	this.vx = 0;
	this.tx = Math.random() * 0.2+0.3; //振幅
	this.x = Math.random() * 500 + 800;//左边线
	this.y = Math.random()*300;//上边线
}



jellyObj.prototype.draw = function() {

	this.x = this.x - this.tx * Math.sin(this.vx) -0.5;

	this.vx += Math.PI / 180;
	if (this.vx >= Math.PI) {
		this.vx -= Math.PI;
	}

	if (this.x < can.width || this.x > -jellyIMG.width) {
		ctx.drawImage(jellyIMG, this.x, this.y);
	}

	if(this.x < -jellyIMG.width){
		this.begin();
	}

}
/*function jelReinit(){
	for(var i = 0; i < ){
		
	}
}*/


function drawJelly() {
	for (var i = 0; i < maxJelly; i++) {
		jelly[i].draw();
	}
}

